package cn.com.hongfu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.hongfu.dao.InfoSetMapper;
import cn.com.hongfu.model.InfoItem;
import cn.com.hongfu.model.InfoSet;
import cn.com.hongfu.service.InfoSetService;
@Service("infoSetService")
public class InfoSetServiceImpl implements InfoSetService{
	@Autowired
	public InfoSetMapper infoSetMapper ;
	@Override
	public int save(InfoSet infoSet) {
		// TODO Auto-generated method stub
		return infoSetMapper.save(infoSet);
	}

	@Override
	public List<InfoSet> getAll() {
		// TODO Auto-generated method stub
		return infoSetMapper.getAll();
	}

	@Override
	public int edit(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int del(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int saveItem(InfoItem infoItem) {
		// TODO Auto-generated method stub
		return infoSetMapper.saveItem(infoItem);
	}

	@Override
	public List<InfoSet> getItemByInfoSetId(int id) {
		// TODO Auto-generated method stub
		return infoSetMapper.getItemByInfoSetId(id);
	}

	@Override
	public int editItem(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delItem(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public InfoSet getInfoSet(int id) {
		// TODO Auto-generated method stub
		return infoSetMapper.getInfoSet(id);
	}

	@Override
	public InfoItem getInfoItem(int id) {
		// TODO Auto-generated method stub
		return infoSetMapper.getInfoItem(id);
	}

	@Override
	public List<InfoItem> getInfoItemByInfoSetName(String name) {
		// TODO Auto-generated method stub
		return infoSetMapper.getInfoItemByInfoSetName(name);
	}
	
}
